package com.bean;

import java.util.ArrayList;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="addressList")
public class AddressList {

	@Id
	private String id;
	private String userId;
	private ArrayList<Address> address_list;
	
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}
	
	public void setUserId(String userId) {
		this.userId = userId;
	}

	public ArrayList<Address> getAddress_list() {
		return address_list;
	}

	public void setAddress_list(ArrayList<Address> address_list) {
		this.address_list = address_list;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "{id:"+id+",userId:"+userId+",address_list:"+address_list+"}";
	}
}
